$mdd-color:green;
div{
  width: 300px;
  height: 300px;
  border: 1px solid #000;
  h1{
    color: pink;
  }
}

@mixin yangshi {
  width: 200px;
  height: 200px;
  border: 1px solid $mdd-color;
  background-color: hotpink
}
span{
  @include yangshi;
  display: inline-block;
  
}